import instance from '@/utils/request'
import Qs from 'qs'
/**
 * 分页查询
 */
export const syslogPage = (entity) => {
  return instance.get('/syslog/page?' + Qs.stringify(entity))
}

/**
 * 根据 id 查询日志记录
 */
export const getById = (id) => {
  return instance.get('/syslog/getById?' + Qs.stringify(id))
}

/**
 * 清空日志
 */
export const removeSyslog = (value, exception) => {
  return instance.get('/syslog/removeSyslog?value=' + value + '&exception=' + exception)
}

/**
 * 导出
 */
export const download = (entity) => {
  return instance.post('/syslog/download', Qs.stringify(entity))
}
